<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/9/7 0007
  Time: 13:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>历史欠费</title>
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <style>
        td {
            width: 100px;
            height: 16px;
            line-height: 16px;
            text-align: center;
            vertical-align: middle;
        }
    </style>
</head>
<body>

<center>
    <h2>历史欠费列表</h2><br/>
    <form action="/rentsys/cost/pay" method="post">
        <table border="1" cellspacing="0">
            <tr style="background: gainsboro">
                <td>选择</td>
                <td>费用时间</td>
                <td>计费周期</td>
                <td>金额</td>
                <td>资源名称</td>
                <td>操作</td>
            </tr>
            <c:forEach items="${costs}" var="c">
                <tr>
                    <td><input type="checkbox" name="choice"/></td>
                    <td><fmt:formatDate value="${c.start_time}"/>-${nowtime}</td>
                    <td>${c.perid}</td>
                    <td>￥${c.money}</td>
                    <td>${c.name}</td>
                    <td><a href="/rentsys/cost/topay?coid=${c.coid}">缴费</a></td>
                </tr>

            </c:forEach>
        </table>

    </form>
</center>


</body>
</html>
